//
//  Node.h
//  TreeTableView
//
//  Created by yixiang on 15/7/3.
//  Copyright (c) 2015年 yixiang. All rights reserved.
//

#import <Foundation/Foundation.h>

/**
 *  每个节点类型
 */
@interface Node : NSObject

@property (nonatomic , assign) int parentId;//父节点的id，如果为-1表示该节点为根节点

@property (nonatomic , assign) int nodeId;//本节点的id

@property (nonatomic , strong) NSString *name;//本节点的名称
@property (nonatomic , strong) NSString *guid;//本节点的GUid

@property (nonatomic , assign) int depth;//该节点的深度

@property (nonatomic , assign) BOOL expand;//该节点是否处于展开状态

@property (copy,nonatomic)NSString  *nodeSon;  //作为判断是否有子节点的条件

@property (strong,nonatomic)NSArray *nodeSonArray; //子知识点

@property(nonatomic,assign)BOOL expanded;

-(instancetype)initWithPointDic:(NSDictionary *)pointDic;
/**
 *快速实例化该对象模型
 */
- (instancetype)initWithParentId : (int)parentId nodeId : (int)nodeId name : (NSString *)name depth : (int)depth expand : (BOOL)expand :(NSString *)guid;

@end
